using System;
namespace Servlets.Exceptions
{
	public class MethodNotAllowedException : ServletException
	{
		public MethodNotAllowedException (Api.HttpMethod method, string url) : base("'" + method + "' is not supported by URL '" + url+ "'")
		{
		}
		
		public override Api.HttpStatus StatusCode {
			get {
				return Api.HttpStatus.STATUS_405_METHOD_NOT_ALLOWED;
			}
		}
	}
}

